import React from 'react';
import {connect} from 'dva';
import styles from './Rolelist.css';
import RoleList from '../components/RoleList';
import MainLayout from '../components/layouts/MainLayout';
import {Row, Col} from 'antd';

function Rolelist({rolelist}) {
  return (
  <MainLayout location={location}>
    <Row>
      <Col span={3}>

      </Col>
      <Col span={18}>
        <RoleList rolelist={rolelist}/>
      </Col>
      <Col span={3}>

      </Col>
    </Row>
  </MainLayout>

  );
}

function mapStateToProps({rolelist}) {
  return {
    rolelist: rolelist
  };
}

export default connect(mapStateToProps)(Rolelist);
